Skip to content

Conversation

@owen-mc
Copy link
Contributor

@owen-mc owen-mc commented Nov 28, 2025

All trivial changes, except one renaming of a predicate, but it's in experimental so we don't expect anyone to be relying on it.

@owen-mc owen-mc requested a review from a team as a code owner November 28, 2025 02:30
@owen-mc owen-mc added the no-change-note-required This PR does not need a change note label Nov 28, 2025
@github-actions github-actions bot added the Go label Nov 28, 2025
Copilot finished reviewing on behalf of owen-mc November 28, 2025 02:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses trivial code quality issues identified by ql-for-ql analysis, focusing on removing redundant code, improving documentation, and standardizing formatting.

  • Removes redundant code constructs (unused imports, unnecessary exists clauses, and redundant constructors)
  • Renames a predicate in experimental code to follow QL naming conventions
  • Improves comment clarity and formatting consistency in query metadata

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
go/ql/test/library-tests/semmle/go/dataflow/GlobalVariableSideEffects/Flows.ql Removes redundant exists(src) and clause that serves no purpose
go/ql/src/experimental/frameworks/DecompressionBombsCustomizations.qll Updates comment to be more concise and accurate for the class description
go/ql/src/experimental/CWE-918/validator.qll Renames predicate from getTagByKeyValue to hasTagKeyValue to follow QL naming conventions
go/ql/src/Security/CWE-020/UntrustedDataToUnknownExternalAPI.ql Splits tags metadata onto separate lines for better formatting
go/ql/src/Security/CWE-020/UntrustedDataToExternalAPI.ql Splits tags metadata onto separate lines for better formatting
go/ql/lib/semmle/go/dataflow/internal/DataFlowNodes.qll Removes unused private import of Private module
go/ql/lib/semmle/go/dataflow/GlobalValueNumbering.qll Removes redundant constructor that adds no value

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@owen-mc owen-mc requested a review from a team as a code owner November 28, 2025 03:49
@github-actions github-actions bot added the Java label Nov 28, 2025
@owen-mc owen-mc changed the title Go: fix miscellaneous trivial issues highlighted by ql-for-ql Go/Java: fix miscellaneous trivial issues highlighted by ql-for-ql Nov 28, 2025
@owen-mc owen-mc merged commit c43b03b into github:main Nov 28, 2025
24 checks passed
@owen-mc owen-mc deleted the go/fix-misc-ql branch November 28, 2025 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Go Java no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants